MessageInputComponent

open class MessageInputComponent

This class creates and performs a view corresponding the message input area in Sendbird UIKit. since 3.0.0

Constructors

Link copied to clipboard
open fun MessageInputComponent()
Constructor since 3.0.

Types

Link copied to clipboard
open class Params
A collection of parameters, which can be applied to a default View.

Functions

Link copied to clipboard
open fun bindUserMention(@NonNull mentionConfig: UserMentionConfig, @NonNull handler: OnMentionEventListener)
Binds the mention configuration and the event listener to the input component.
Link copied to clipboard
open fun getEditTextView(): EditText
Returns the edit text view used in the input component bt default.
Link copied to clipboard
open fun getRootView(): View
Returns the view created by onCreateView.
Link copied to clipboard
open fun notifyChannelChanged(@NonNull channel: GroupChannel)
Notifies this component that the channel data has changed.
Link copied to clipboard
open fun notifyDataChanged(@Nullable message: BaseMessage, @NonNull channel: GroupChannel)
open fun notifyDataChanged(    @Nullable message: BaseMessage,     @NonNull channel: GroupChannel,     @NonNull defaultText: String)
Notifies this component that the data needed to draw the input has changed.
Link copied to clipboard
open fun notifySuggestedMentionDataChanged(@NonNull suggestedMentionList: List<User>)
Notifies changes of suggested mention list.
Link copied to clipboard
open fun onCreateView(    @NonNull context: Context,     @NonNull inflater: LayoutInflater,     @NonNull parent: ViewGroup,     @Nullable args: Bundle): View
Called after the component was created to make views.
Link copied to clipboard
protected open fun onEditModeCancelButtonClicked(@NonNull view: View)
Called when the cancel button is clicked, when the input is the edited mode.
Link copied to clipboard
protected open fun onEditModeSaveButtonClicked(@NonNull view: View)
Called when the save button is clicked, when the input is the edited mode.
Link copied to clipboard
protected open fun onEditModeTextChanged(    @NonNull s: CharSequence,     start: Int,     before: Int,     count: Int)
Called when the input text is changed, when the input is the edited mode.
Link copied to clipboard
protected open fun onInputLeftButtonClicked(@NonNull view: View)
Called when the left button of the input is clicked.
Link copied to clipboard
protected open fun onInputModeChanged(@NonNull before: MessageInputView.Mode, @NonNull current: MessageInputView.Mode)
Called when the input mode is changed.
Link copied to clipboard
protected open fun onInputRightButtonClicked(@NonNull view: View)
Called when the right button of the input is clicked.
Link copied to clipboard
protected open fun onInputTextChanged(    @NonNull s: CharSequence,     start: Int,     before: Int,     count: Int)
Called when the input text is changed.
Link copied to clipboard
protected open fun onQuoteReplyModeCloseButtonClicked(@NonNull view: View)
Called when the close button is clicked, when the input is the quote reply mode.
Link copied to clipboard
protected open fun onVoiceRecorderButtonClicked(@NonNull view: View)
Called when the voice recorder button is clicked.
Link copied to clipboard
open fun requestInputMode(@NonNull mode: MessageInputView.Mode)
Requests to set the input mode.
Link copied to clipboard
open fun setOnEditModeCancelButtonClickListener(@Nullable editModeCancelButtonClickListener: View.OnClickListener)
Register a callback to be invoked when the cancel button is clicked, when the input is the edited mode.
Link copied to clipboard
open fun setOnEditModeSaveButtonClickListener(@Nullable editModeSaveButtonClickListener: View.OnClickListener)
Register a callback to be invoked when the save button is clicked, when the input is the edited mode.
Link copied to clipboard
open fun setOnEditModeTextChangedListener(@Nullable editModeTextChangedListener: OnInputTextChangedListener)
Register a callback to be invoked when the input text is changed, when the input is the edited mode.
Link copied to clipboard
open fun setOnInputLeftButtonClickListener(@Nullable inputLeftButtonClickListener: View.OnClickListener)
Register a callback to be invoked when the left button of the input is clicked.
Link copied to clipboard
open fun setOnInputModeChangedListener(@Nullable inputModeChangedListener: OnInputModeChangedListener)
Register a callback to be invoked when the input mode is changed.
Link copied to clipboard
open fun setOnInputRightButtonClickListener(@Nullable inputRightButtonClickListener: View.OnClickListener)
Register a callback to be invoked when the right button of the input is clicked.
Link copied to clipboard
open fun setOnInputTextChangedListener(@Nullable inputTextChangedListener: OnInputTextChangedListener)
Register a callback to be invoked when the input text is changed.
open fun setOnQuoteReplyModeCloseButtonClickListener(@Nullable replyModeCloseButtonClickListener: View.OnClickListener)
Register a callback to be invoked when the close button is clicked, when the input is the quote reply mode.
Link copied to clipboard
open fun setOnVoiceRecorderButtonClickListener(@Nullable voiceRecorderButtonClickListener: View.OnClickListener)
Register a callback to be invoked when the voice recorder button is clicked.
Link copied to clipboard
open fun setSuggestedMentionListAdapter(@NonNull adapter: SuggestedMentionListAdapter)
Sets the adapter for suggested mention list.
Link copied to clipboard
open fun setUseSuggestedMentionListDivider(useDivider: Boolean)
Sets whether to use divider in suggested mention list.

Properties

Link copied to clipboard
val params: MessageInputComponent.Params

Inheritors

Link copied to clipboard